package org.alis.smallcc.designpatterns.behavior.observer.spring;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.stereotype.Service;

/**
 * 注册服务
 * 
 * @author luochuan
 */
@Service
public class PeopleRegisterService {
	@Autowired
	private ApplicationEventPublisher publisher;
	
	public void publish(List<String> list) {
		publisher.publishEvent(new PeopleBusEvent("s", list));
	}
}
